# Sets the minimum version of CMake required to build your native library.
# This ensures that a certain set of CMake features is available to
# your build.

cmake_minimum_required(VERSION 3.10.2)

# Declares and names the project.
#项目名称
project("mynativecmakelearingproject")

# Specifies a library name, specifies whether the library is STATIC or
# SHARED, and provides relative paths to the source code. You can
# define multiple libraries by adding multiple add.library() commands,
# and CMake builds them for you. When you build your app, Gradle
# automatically packages shared libraries with your APK.

add_library( # Specifies the name of the library.
        #库名称，MainActivity中的 System.loadLibrary("mynativecmakelearing")名称必须是库名称
        mynativecmakelearing

        # Sets the library as a shared library.
        SHARED

        # Provides a relative path to your source file(s).
        #c文件的路径
        ./app/src/main/cpp/native-make.cpp)

